<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui">
    <body>

        <ui:composition template="./../../Template/generalTemplate.xhtml">

         
          
            <ui:define name="content">
                <h:form>
                    <f:view beforePhase="#{salesOrderCreationResultManagedBean.initView}">
                    <div style="margin-top:100px; margin-left:200px;">
                    <p style="color:green; font-size: 16px;"><h:outputText value="#{salesOrderCreationResultManagedBean.displayContent}"/></p>
                   
                    <h:panelGrid style="font-size:15px;" columns ="2" cellpadding="3">
                        <h:outputText value="Draft" rendered="#{salesOrderCreationResultManagedBean.draft}"/>
                         <p:graphicImage value="/images/check.jpg" style="height:20px; width:20px;" rendered="#{salesOrderCreationResultManagedBean.draft}" />  
                         <h:outputText value="Sales Order is verified with the sales Quotation"/>
                         <p:graphicImage value="/images/check.jpg" style="height:20px; width:20px;" rendered="#{salesOrderCreationResultManagedBean.verify}" />
                         <p:graphicImage value="/images/error.jpg" style="height:20px; width:20px;" rendered="#{!salesOrderCreationResultManagedBean.verify}" />
                          <h:outputText value="Large Sales Order" rendered="#{salesOrderCreationResultManagedBean.largeOrder}"/>
                           <p:graphicImage value="/images/check.jpg" style="height:20px; width:20px;" rendered="#{salesOrderCreationResultManagedBean.largeOrder}" />
                          <h:outputText value="Sales Order Approved" />
                          <p:graphicImage value="/images/check.jpg" style="height:20px; width:20px;" rendered="#{salesOrderCreationResultManagedBean.largeOrderApprove}" />
                          <p:graphicImage value="/images/error.jpg" style="height:20px; width:20px;" rendered="#{!salesOrderCreationResultManagedBean.largeOrderApprove}" />
                   
                         <h:outputText value="Credit Check Passed"/>
                         <p:graphicImage value="/images/check.jpg" style="height:20px; width:20px;" rendered="#{salesOrderCreationResultManagedBean.creditCheck}" />
                          <p:graphicImage value="/images/error.jpg" style="height:20px; width:20px;" rendered="#{!salesOrderCreationResultManagedBean.creditCheck}" />
                         <h:outputText value="ATP Check Passed"/>
                         <p:graphicImage value="/images/check.jpg" style="height:20px; width:20px;" rendered="#{salesOrderCreationResultManagedBean.atpCheck}" />
                          <p:graphicImage value="/images/error.jpg" style="height:20px; width:20px;" rendered="#{!salesOrderCreationResultManagedBean.atpCheck}" />
                    </h:panelGrid>
                    </div>
                  <p:commandButton style="margin-top:100px; margin-left:200px" value="View Detail" action="#{salesOrderCreationResultManagedBean.viewDetail}"/>
                    
                    </f:view>        
                </h:form>    
            </ui:define>

        

        </ui:composition>

    </body>
</html>
